package com.base.kongjian.service;

import com.base.kongjian.entity.WorksNumCount;

public interface WorksNumCountService
{
	/**
	 * 更新
	 * @param worksNumCount
	 */
	void updateWNC(WorksNumCount worksNumCount);
	/**
	 * 更新个人作品总数
	 * @param memberId
	 * @param workName
	 * @param meth      add  或者delete
	 */
	void updateWorksNumCount(long memberId, String workName, String meth);
	/**
	 * 通过会员ID获得
	 * @param memberId
	 * @return
	 */
	WorksNumCount getItsByMemberIed(long memberId);
	/**
	 * 通过会员ID删除
	 * @param memberId
	 */
	void deleteItsByMemberId(long memberId);
	/**
	 * 保存 在会员注册成功的时候
	 * @param worksNumCount
	 */
	void saveWNC(WorksNumCount worksNumCount);
	
	/**
	 * 通过ID 获得某个会员的所有作品总和
	 * @param memberId
	 * @return
	 */
	long getAllWorkNum(long memberId);
}
